Send Mail
AutomatR.ExchangeServer.Activities.SendMail
The "Send Mail" activity in AutomatR is part of the Exchange Server activities package, allowing automation processes to send emails through Microsoft Exchange Server. This activity facilitates communication by enabling the automated sending of messages to one or more recipients.
Properties
Name | Description |
---|---|
Input | |
Attachments | Specifies the full file paths of files to be attached to the email. This uses a List<String> variable, allowing multiple file attachments in the email. |
BCC | Specifies the email addresses to be marked as BCC (Blind Carbon Copy) when sending the email. BCC recipients receive a copy of the email, but their addresses are not visible to other recipients. String variables containing BCC email addresses. |
Body | Specifies the content for the email body that will be sent. It can be in either text or HTML format, providing the main message of the email. String variables containing the email body content. |
CC | Specifies the email addresses to be marked as CC (Carbon Copy) when sending the email. CC recipients receive a copy of the email for informational purposes. String variables containing CC email addresses. |
Subject | Specifies the subject line for the email being sent. It represents a concise summary or description of the email content. String variables containing the subject line. |
To | Specifies the email addresses of the recipients in the "To" field when sending the email. It represents the primary recipients of the email. String variables containing the email addresses. |
Misc | |
Display Name | The display name of the activity. A display name is automatically generated when you indicate a target. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Send Mail" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the wait time is 1000 milliseconds or 1 sec, i.e., 1. |
How to use:
- Drag and drop the "Send Mail" activity onto the workflow.
- Configure the properties by specifying the recipients, subject, body, and any optional settings.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to send the specified email through Microsoft Exchange Server.
Example: Consider an example where the "Send Mail" activity is used to send a notification email:
Send Mail:
Display Name: "Notify Users"
To: "user1@example.com,user2@example.com"
CC: "user3@example.com"
BCC: "admin@example.com"
Subject: "Notification Alert"
Body: "This is an automated notification email."
Attachments: ["C:\Files\attachment1.txt", "D:\Documents\attachment2.pdf"]
In this example, the activity sends a notification email to specified recipients, including CC and BCC recipients. The email contains a subject, body, and attachments as configured in the properties.